<?php
class FootMenu extends CWidget{

    public $items;

    public function init(){
        $this->items = MenuItems::model()->findAll(array('condition' => "type='footer' AND is_active=1"));
    }

    public function run(){
        $this->render('FootMenu');
    }
}